using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using CimeaSoft.BE;

namespace CimeaSoft.Repository.Mapping
{
    public class AbiMap : EntityTypeConfiguration<Abi>
    {
        public AbiMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            // Table & Column Mappings
            this.ToTable("Abi");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Orden).HasColumnName("Orden");
            this.Property(t => t.Familia).HasColumnName("Familia");
            this.Property(t => t.ABI1).HasColumnName("ABI");
            this.Property(t => t.Abundancia).HasColumnName("Abundancia");
        }
    }
}
